// 信号量的常用API
#include <stdio.h>
// 过程中给以下文件添加了注释，如果运行出问题，在备份中取一个新的文件覆盖
#include "src\kernel\liteos_m\kal\cmsis\cmsis_liteos2.c"
#include <unistd.h>

#include "ohos_init.h"
#include "cmsis_os2.h"
#include <unistd.h>
#include "hi_wifi_api.h"
//#include "wifi_sta.h"
#include "lwip/ip_addr.h"
#include "lwip/netifapi.h"

#include "lwip/sockets.h"

// 信号量的创建与删除

osSemaphoreId_t osSemaphoreNew(uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr);
osStatus_t osSemaphoreDelete(osSemaphoreId_t semaphore_id);

// 信号量的获取与释放

osStatus_t osSemaphoreAcquire(osSemaphoreId_t semaphore_id, uint32_t timeout);
osStatus_t osSemaphoreRelease(osSemaphoreId_t semaphore_id);

// 信号量的查询

uint32_t osSemaphoreGetCount(osSemaphoreId_t semaphore_id);